<html>
<head><meta charset="utf-8"><title>tidy check ignore directory · t-compiler · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/index.html">t-compiler</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/tidy.20check.20ignore.20directory.html">tidy check ignore directory</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="209315976"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/tidy%20check%20ignore%20directory/near/209315976" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Hughes <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/tidy.20check.20ignore.20directory.html#209315976">(Sep 07 2020 at 17:27)</a>:</h4>
<p>I'm experimenting with a personal fork of rustc which adds various .c files inside <code>library/my_lib</code>. How can I prevent this directory from being scanned by the tidy checker? I have lots of files in this directory which I'd rather not have to manually ignore individually. Thanks</p>



<a name="209319188"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/tidy%20check%20ignore%20directory/near/209319188" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/tidy.20check.20ignore.20directory.html#209319188">(Sep 07 2020 at 18:28)</a>:</h4>
<p>There should be exclude lists in tidy, or you can just not run tidy. Which lint in particular are you hitting?</p>



<a name="209379163"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/tidy%20check%20ignore%20directory/near/209379163" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Hughes <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/tidy.20check.20ignore.20directory.html#209379163">(Sep 08 2020 at 12:32)</a>:</h4>
<p>Lints in particular are: TODO -&gt; FIXME; CR problems; tabs no spaces etc. It's too difficult to annotate each file individually as I've pulled a huge C library inside (don't ask ;) ). I can't seem to find the exclude list anywhere, where is it? I could turn off tidy as a last resort, but I do find it useful for when I'm making changes inside rustc</p>



<a name="209383915"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/tidy%20check%20ignore%20directory/near/209383915" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/tidy.20check.20ignore.20directory.html#209383915">(Sep 08 2020 at 13:15)</a>:</h4>
<p><span class="user-mention" data-user-id="223286">@Jake Hughes</span> <a href="https://github.com/rust-lang/rust/blob/master/src/tools/tidy/src/lib.rs#L51">https://github.com/rust-lang/rust/blob/master/src/tools/tidy/src/lib.rs#L51</a></p>



<a name="209383941"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/tidy%20check%20ignore%20directory/near/209383941" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/tidy.20check.20ignore.20directory.html#209383941">(Sep 08 2020 at 13:15)</a>:</h4>
<p>I would expect that to work</p>



<a name="209389282"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/tidy%20check%20ignore%20directory/near/209389282" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Hughes <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/tidy.20check.20ignore.20directory.html#209389282">(Sep 08 2020 at 13:56)</a>:</h4>
<p><span class="user-mention" data-user-id="116122">@simulacrum</span>  - Perfect, thanks a lot!</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>